package com.mutual.reins.config.entity;

import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author CodeGenerate
 * @since 2021-04-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class FhTreaty implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 合约编码

     */
    @TableId("TREATYNO")
    private String treatyNo;

    /**
     * 续转合约编码(父合约)

     */
    @TableField("EXTREATYNO")
    private String exTreatyNo;

    /**
     * 成数溢额合约关联号

     */
    @TableField("CONNTREATYNO")
    private String connTreatyNo;

    /**
     * 00-分出，01-分入
     */
    @TableField("OPTTYPE")
    private String optType;

    /**
     * 合约简称

     */
    @TableField("REFNO")
    private String refNo;

    /**
     * 合约全称

     */
    @TableField("TREATYNAME")
    private String treatyName;

    /**
     * 合约英文名称

     */
    @TableField("TREATYENAME")
    private String treatyEname;

    /**
     * 关闭日期

     */
    @TableField("CLOSEDATE")
    private LocalDate closeDate;

    /**
     * 合约类型

     */
    @TableField("TREATYTYPE")
    private String treatyType;

    /**
     * 业务年度

     */
    @TableField("UWYEAR")
    private String uwYear;

    /**
     * 合约起期
     */
    @TableField("STARTDATE")
    private LocalDate startDate;

    /**
     * 合约止期

     */
    @TableField("ENDDATE")
    private LocalDate endDate;

    /**
     * 续转日期

     */
    @TableField("EXTENDDATE")
    private LocalDate extendDate;

    /**
     * 临时注销通知日期

     */
    @TableField("LOGOUTDATE")
    private LocalDate logOutDate;

    /**
     * 分保基础

     */
    @TableField("REPREMIUMBASE")
    private String rePremiumBase;

    /**
     * 计算基础

     */
    @TableField("CALCULATEBASE")
    private String calculateBase;

    /**
     * 币别
     */
    @TableField("CURRENCY")
    private String currency;

    /**
     * 出帐天数

     */
    @TableField("ACCDATE")
    private Integer accDate;

    /**
     * 结付天数

     */
    @TableField("DUEDATE")
    private Integer dueDate;

    /**
     * 帐单周期

     */
    @TableField("ACCPERIOD")
    private String accPeriod;

    @TableField("EXTENDFLAG")
    private String extendFlag;

    @TableField("INREINSCODE")
    private String inReinsCode;

    /**
     * 经纪人编码
     */
    @TableField("BROKERCODE")
    private String brokerCode;

    /**
     * 付款人编码
     */
    @TableField("PAYCODE")
    private String payCode;

    @TableField("INREINSNAME")
    private String inReinsName;

    /**
     * 经纪人名称
     */
    @TableField("BROKERNAME")
    private String brokerName;

    /**
     * 付款人名称
     */
    @TableField("PAYNAME")
    private String payName;

    @TableField("EXCHANGEFLAG")
    private String exchangeFlag;

    /**
     * 合约状态

     */
    @TableField("STATEFLAG")
    private String stateFlag;

    /**
     * 备注
     */
    @TableField("REMARKS")
    private String reMarks;

    /**
     * 创建人编码
     */
    @TableField("CREATERCODE")
    private String createrCode;

    /**
     * 创建日期
     */
    @TableField("CREATEDATE")
    private LocalDate createDate;

    /**
     * 更新人编码
     */
    @TableField("UPDATERCODE")
    private String updaterCode;

    /**
     * 更新日期
     */
    @TableField("UPDATEDATE")
    private LocalDate updateDate;

    @TableField("UNDERWRITECODE")
    private String underwriteCode;

    @TableField("UNDERWRITEENDDATE")
    private LocalDateTime underwriteEndDate;

    @TableField("FLAG")
    private String flag;

    /**
     * 按实收保费实收付 1:是 0：否
     */
    @TableField("BASEPAYPREMIUM")
    private String basePayPremium;

    /**
     * 是否通过重大风险转移测试

     */
    @TableField("MAJORRISKFLAG")
    private String majorRiskFlag;

    /**
     * 分入业务进合约计算方式

     */
    @TableField("METHODS")
    private String methods;

    @TableField("MERGEFLAG")
    private String mergeFlag;


}
